package com.hch.datastructure.linkedlist;

import com.hch.datastructure.linkedlist.data.WaterMarginHero;


public class SingleListRun {


    public static void main(String[] args) {
        SingleLinkedList singleLinkedList = new SingleLinkedList();
        singleLinkedList.add(new SingleNode(1,new WaterMarginHero("宋江")));
        singleLinkedList.add(new SingleNode(1,new WaterMarginHero("武松")));
        singleLinkedList.add(new SingleNode(1,new WaterMarginHero("吴用")));
        singleLinkedList.add(new SingleNode(1,new WaterMarginHero("李逵")));
        singleLinkedList.list();

//        SingleLinkedList singleLinkedList1 = new SingleLinkedList();
//        singleLinkedList1.addByOrder(new SingleNode(1,new WaterMarginHero("宋江")));
//        singleLinkedList1.addByOrder(new SingleNode(7,new WaterMarginHero("李逵")));
//        singleLinkedList1.addByOrder(new SingleNode(3,new WaterMarginHero("武松")));
//        singleLinkedList1.addByOrder(new SingleNode(8,new WaterMarginHero("鲁智深")));
//        singleLinkedList1.addByOrder(new SingleNode(2,new WaterMarginHero("吴用")));
//        singleLinkedList1.list();
        singleLinkedList.reverseList();
        singleLinkedList.list();



    }

}
